iframe {
    border: none;

}

body {
    transform-origin: 0 0; /* 缩放的原点设置为左上角 */
    width: auto;
    animation: gradientAnimation 10s infinite alternate;
    background-size: 200% 100%;
    background: linear-gradient(to right, #fea2a2, #8db3f9, #65cea6, #5167d3);
    height: auto;
    transition: background-color 0.5s ease;
}

.day-mode {
    background: linear-gradient(to right, #fea2a2, #8db3f9, #65cea6, #5167d3);
    color: #000;
}

.night-mode {
    background: linear-gradient(to right, #694938, rgb(100, 55, 55), rgba(47, 57, 103, 0.91), #44157c, #a100ff);

    color: #fff;
}

table {
    /*border: 2px solid; !* Add a border around the table *!*/
    /*border-collapse: collapse; !* Collapse border spacing *!*/
    width: 100%; /* Make the table width 100% of its container */
    box-sizing: border-box;
}

th, td {
    text-align: left;
    box-sizing: border-box;
}

.cebian ul {
    top: -12px;
    padding: 5px;
    list-style: none;
}

.cebian li {
    margin-top: 5px;
    border: 3px solid #fbc89d;
    padding: 8px;
    width: 100%;
    text-align: center;
    margin-bottom: 3px;
    background: linear-gradient(to left, #00b0fe, rgba(91, 9, 97, 0), #69ce65, #d351cd);
    animation: gradientAnimation 10ms infinite alternate;

}

.cebian3 a {
    text-decoration: none;
    color: #000000;
    font-size: 12px;
}

.cebian3 ul {
    top: -12px;
    padding: 5px;
    list-style: none;
}

.cebian3 li {
    margin-top: 5px;
    border: 3px solid #fbc89d;
    padding: 8px;
    width: 90%;
    text-align: center;
    margin-bottom: 3px;
    background: linear-gradient(to left, #00b0fe, rgba(91, 9, 97, 0), #69ce65, #d351cd);
    animation: gradientAnimation 10ms infinite alternate;

}

.cebian3 a {
    text-decoration: none;
    color: #000000;
    font-size: 17px;
}

.cebian2 a:hover {
    right: -10%;
    text-decoration: underline;
}

.cebian2 ul {
    right: -10%;
    padding: 5px;
    list-style: none;
}

.cebian2 li {
    width: 200px;
    border: 3px solid #fbc89d;
    padding: 8px;
    text-align: center;
    margin-bottom: 3px;
    background: linear-gradient(to left, #a2e5fe, rgba(200, 141, 249, 0.06), rgba(127, 101, 206, 0.34), #d351cd);
}

.cebian2 a {
    text-decoration: none;
    color: ghostwhite;
    font-size: 20px;
}

.cebian2 a:hover {
    text-decoration: underline;
}

li {
    text-align: center;
    color: #ffffff;
    font-size: 17px;
}

h5 {
    text-align: center;
    font-size: 20px;
}
button {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 30px;
    line-height: 5px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 12px;
    text-decoration: none;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 30px;
}

button:hover {
    animation: animate 8s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}


button:before {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 10px;
    opacity: 0;
    transition: all 1s;
}

button:hover:before {
    filter: blur(20px);
    opacity: 1;
}

.nav {
    border-radius: 10px 10px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 250px;
    height: 40px;
    background: linear-gradient(to left, #fee0a2, #f98d92, #ce65af, #8e51d3);
    position: fixed;
    top: 10px;
    right: 0.5%;
    z-index: 80;
}

.toggle {
    border-radius: 10px 10px;
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(to right, #eafea2, #b1f98d, #65cea2, #519dd3);
}

.toggle::before {
    content: '更多...';
    margin-right: 40px;
    font-size: 20px;
}

.toggle span {
    position: relative;
    width: 50px;
    height: 50px;
}

.toggle span::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
    transition: 0.5s;
}

.toggle span::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
    transition: 0.5s;
}

.toggle.active span::before {
    transform: rotate(225deg);
    top: 24px;
}

.toggle.active span::after {
    transform: rotate(135deg);
    bottom: 24px;
}

.h ul {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.h ul li {
    top: -15px;
    border-radius: 10px 10px;
    text-align: center;
    height: 30px;
    margin: 1px;
    width: 220px;
    background: linear-gradient(to right, #eafea2, #b1f98d, #65cea2, #519dd3);
    color: #000000;
    cursor: pointer;
    position: relative;
    font-size: 20px;
    list-style: none;
    transition: .5s;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-250px);
    transition-delay: calc(0.1s * var(--i));
}

.nav.active li {
    text-align: center;
    visibility: visible;
    opacity: 1;
    transform: translateX(0px);
}


.searchBar {
    width: 60px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .4);
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    transition: .5s;
}

.img1 {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.img1 i {
    color: #f48c2d;
    font-size: 30px;
}

.textInput {
    width: 320px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d60503;
    position: absolute;
    top: 0;
    left: 60px;
}

.textInput input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 18px;
}

.clear {
    width: 15px;
    height: 15px;
    position: absolute;
    right: 22%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clear i {
    color: #121212;
}

.goBtn {
    width: 12%;
    height: 60%;
    position: absolute;
    top: 20%;
    right: 0;
    border-radius: 8px;
    outline: none;
    border: none;
    color: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, .4);
    background: linear-gradient(#b500fd, #b910a2);
    cursor: pointer;
}

.changeWidth {
    width: 400px;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0 100%;
    }
    100% {
        background-position: 100% 0;
    }
}

.on {
    color: red;
    border: #1b1b1b;
}

li:hover::before {
    content: '点击进入';
}
.product-container {
    display: flex;
    justify-content: center;
    margin: 20px; /* 调整整体外边距 */
}

.product-item {
    border: 1px solid red; /* 外边框样式 */
    padding: 10px; /* 内边距 */
    margin-right: 20px; /* 控制相邻格子之间的间距 */
    flex: 1; /* 自适应宽度 */
    max-width: 16%; /* 最大宽度 */
    text-align: center; /* 文本居中 */
}

.product-item img {
    max-height: 260px;
    min-height: 260px;
    min-width: 220px;
    max-width: 220px;
}

.product-item h3 {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    white-space: nowrap; /* 文本不换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 使用省略号代替 */
}









#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
}

#animationBox {
    width:500px;
    height: 70px;
    background: linear-gradient(to right, #fea2a2, #8db3f9, #65cea6, #5167d3);
    position: absolute; /* 绝对定位 */
    top: 0;
    left: 0;
    text-align: center;
    /*line-height: 100px; !* 垂直居中文本 *!*/
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: none;
}

/* 下落和上升动画 */
@keyframes dropAndRise {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(0%);
        opacity: 0;
    }
}


.foot p {
    text-align: center;
}

.foot span {
    padding-right: 20px;
}


.menu {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    position: absolute;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #303640;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 1.25s;
}

.btn i {
    font-size: 32px;
}


.menu span {
    /* 基本大小 */
    width: 40px;
    height: 40px;
    background-color: #303640;
    color: var(--clr);
    border: 2px solid var(--clr);
    position: absolute;
    left: 0;
    /* 居中圆角 */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;

    transform-origin: 100px;
    transition: .5s;
    transition-delay: calc(.1s * var(--i));
    transform: rotate(0deg) translateX(80px);
}

/* hover旋转的效果 */
.menu:hover span {
    transform: rotate(calc(360deg / 8 * var(--i)));
}

/* 调整图标角度，保证旋转后是正的 */
.menu span i {
    transform: rotate(calc(360deg / -8 * var(--i)));
}

.menu:hover .btn {
    transform: rotate(315deg);
}

.menu span:hover {
    background: var(--clr);
    color: #333;
    box-shadow: 0 0 10px var(--clr),
    0 0 30px var(--clr),
    0 0 50px var(--clr);
    transition: 0s;
}

.container {
    position: relative; /* 设置相对定位的容器 */
    display: inline-block; /* 设置为内联块级元素，以便宽度和高度根据内容自动调整 */
}

.bottom-image, .middle-image, .top-image {
    position: absolute; /* 设置绝对定位，以便控制图片的位置 */
    top: 0;
    left: 0;
}

.middle-image, .top-image {
    z-index: 1; /* 设置叠在底部图片上的图片的层叠顺序 */
}

.top-image {
    z-index: 2; /* 设置在最顶层的图片的层叠顺序 */
}